<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<style type="text/css">
	body{font-size:13px;}
	.clsShow{border:#ccc 1px solid;background-color:#eee;margin-top:15px;padding:5px;width:220px;line-height:1.8em;display:none}
	.btn{border:#666 1px solid;padding:2px;width:50px;filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr=#ffffff,EndColorStr=#ECE9D8);}
</style>
<script type="text/javascript" src="../../js/jquery-2.1.1.min.js"></script>
<script type="text/javascript">
	 $(function(){
		var intI = 0;
		$("body,div,#btnShow").click(function(){
			intI++;
			$(".clsShow").show().html("您好，欢迎来到JQuery世界！").append("<div>执行次数<b>"+intI+"</b></div>");
			//两种方式阻止事件的冒泡过程
			event.stopPropagation();
			//return false;
		})
	 })
</script>
</head>
<body>
	<div>
		<input id="btnShow" type="button" value="点击" class="btn" />
	</div>
	<div class="clsShow"></div>
</body>
</html>